import java.util.Calendar;
import java.util.Date;


public class No25_27 {
	public static void main(String[] args) {
		Calendar c = Calendar.getInstance();
//		c.setTime(new Date());
//		c.set(Calendar.MONTH, Calendar.APRIL);
		
		System.out.println(c.getTime());
		System.out.println(c.getActualMaximum(Calendar.DAY_OF_MONTH));
		System.out.println(c.getActualMinimum(Calendar.DAY_OF_MONTH));
	}
}
